/**
 * 在主框架内显示
 */
const frameIn = [
  {
    path: '/',
    redirect: {name: 'talentPool'},
    component: () => import('@/components/common/layout'),
    children: [
      {
        // 首页
        path: '/talent_pool',
        name: 'talentPool',
        component: () => import('@/components/talent_pool')
        // component: () => import('@/components/talent_pool/ui')
      },
      {
        // 项目
        path: '/project',
        name: 'project',
        component: () => import('@/components/project')
        // children: [
        //   {
        //     //项目列表
        //     path: '/project',
        //     name: 'projectList',
        //     component: () => import('@/components/project/list')
        //   },{
        //     // 项目详情
        //     path: '/project/:id',
        //     name: 'projectDetail',
        //     component: () => import('@/components/project/detail')
        //   }
        // ]
      },
      {
        // 岗位
        path: '/post',
        name: 'post',
        component: () => import('@/components/post')
      },
      {
        // 岗位
        path: '/post2',
        name: 'post2',
        component: () => import('@/components/post/list')
      },
      {
        // 人才mapping
        path: '/mapping',
        name: 'mapping',
        component: () => import('@/components/mapping')
      },
      {
        // 新消息
        path: '/news',
        name: 'news',
        component: () => import('@/components/news')
      },
      {
        // 待办
        path: '/pending',
        name: 'pending',
        component: () => import('@/components/pending')
      }
    ]
  }
]
/**
 * 在主框架外
 */
const frameOut = [
  {
    // 简历详情
    path: '/resume/:id',
    name: 'resumeDetail',
    component: () => import('@/components/resume'),
  }
]

export default [
  ...frameIn,
  ...frameOut
]